<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
	
</script>
<title>酷妈妈商城--用户登陆</title>
<script type="text/javascript">
	window.onload = function() {
		var value = "${cookie.username.value}";
		document.getElementById("username").value = decodeURIComponent(value);
	}
</script>
</head>
<body>
	<h1>用户登陆</h1>
	<h4 style="color: red;">${msg}</h4>
	<form action="LoginServlet" method="post"
		onsubmit="return checkForm();">
		<table>
			<tr>
				<td>用户名：</td>
				<td><input type="text" name="username" id="username" /></td>
			</tr>
			<tr>
				<td>密码：</td>
				<td><input type="password" name="password" id="password"
					value="${cookie.password.value}" /></td>
			</tr>
			<tr>
				<td></td>
				<td><input type="checkbox" name="remember" id="remember" />记住用户名与密码</td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" value="登陆" /> <input type="button"
					value="注册" onclick="location.href='regist.jsp';" /></td>
			</tr>
		</table>

	</form>
</body>
</html>